<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<nav class="navbar navbar-inverse" role="navigation" data-toggle="collapse">
	  <div class="container-fluid">
	    <!-- Brand and toggle get grouped for better mobile display -->
	    <div class="navbar-header">
	      <a class="navbar-brand" href="index.jsp">
	      	<span class="glyphicon glyphicon-home"></span>
	      </a>
	    </div>

	    <!-- Collect the nav links, forms, and other content for toggling -->
	    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
	      <ul class="nav navbar-nav">
	        	<%
	        		String username = (String)session.getAttribute("username");
	        		String utype = (String)session.getAttribute("utype");
	        		if (username!=null&&utype.equals("admin")) 
	        		{
	        	%>
	        		<!-- <li><a href="#" id="manageNews">新闻管理</a></li> -->
			        <li><a href="#" id="managePerson">个人用户管理</a></li>
			        <li><a href="#" id="manageEnterprise">企业用户管理</a></li>
	        	<%
	        		}
	        		else
	        		{
	        	%>
	        			<li><a href="#">您无权限查看功能</a></li>
	        	<%
					}
	        	%>
	      </ul>
	      
	       <ul class="nav navbar-nav navbar-right">
	        <li>
	        	<%
	        		if (username==null) 
	        		{

	        	%>
	        		<a data-toggle="modal" href="#loginModal">登录</a>
	
	        	<%
	        		}
	        		else
	        		{
	        	%>
	        		<a>欢迎您,<%=username%></a>
	        		</li>
	        		<li>
	        		<a href="#" id="logoutAdmin">退出</a>
	        	<%
					}
	        	%>
	        </li>
	      </ul>
	    </div><!-- /.navbar-collapse -->
	  </div><!-- /.container-fluid -->
	</nav>
